package com.obrempon.credit.market.httptest.api

import com.obrempon.credit.market.configs.ObremponApiPath
import com.obrempon.module.easyhttp.annotation.HttpRename

/**
 * ObremponCredit
 * @Author wwdeng
 * @CreateTime: 2025/2/28 11:23
 * @Annotation：
 */
class EventTrackApi: ICommonApi() {

    @HttpRename("path")
    private var path = ObremponApiPath.OBREMPON_PATH.OBREMPON_API_TRACK_EVENT_PATH

    @HttpRename("type")
    private var eventType = ""

    @HttpRename("remark")
    private var eventRemark = ""

    fun insertEventTrack(eventType: String, eventRemark: String? = ""): EventTrackApi{
        this.eventType = eventType.uppercase()//转大写
        if (!eventRemark.isNullOrEmpty()){
            this.eventRemark = eventRemark
        }
        return this
    }
}